package util;

import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;

public class Entry implements Serializable{
	
	private int idf;
	private List<DocumentTermFrequency> docTermFreqList;
	
	public Entry (int idf, List<DocumentTermFrequency> list) {
		this.idf = idf;
		this.docTermFreqList = list; 
	}

	public int getIdf() {
		return idf;
	}

	public void setIdf(int idf) {
		this.idf = idf;
	}
	
	public List<DocumentTermFrequency> getDocTermFreqList() {
		return docTermFreqList;
	}
	
	public void increaseIdf() {
		this.idf++;
	}
	
	public boolean addDocTermFrequency(DocumentTermFrequency d) {
		return this.docTermFreqList.add(d);
	}
	
}
